<?php

namespace App\Providers;

use Illuminate\Http\Request;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot(Request $request)
    {
        //
        $configarr = [];//getWxConfig(); // array('appId'=>'','timestamp'=>'','nonceStr'=>'','signature'=>'')
        $adminData = adminHeaderData();
        view()->share('configarr', $configarr);
        view()->share('adminheaderdata', $adminData);
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
